﻿using OpenReflect.Domain.Contracts;
using OpenReflect.Domain.Contracts.Declarations;

namespace OpenReflect.Domain.Model.CodeStructure
{
	public class CastExpression : Expression
	{
		public CastExpression(Expression target, ITypeDeclaration toType) : base(ExpressionType.CastExpression)
		{
			Target = target;
			ToType = toType;
		}

		public ITypeDeclaration ToType { get; private set; }
		public Expression Target { get; private set; }
	}
}